home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINPROGS / ECJDLL11.ZIP / EXAMPLE.ZIP / ECJAPI.H next >
Text File  |  1993-08-15  |  581b  |  22 lines

  1. /* ECJ callback messages */
  2. #define ECJ_RESOLUTION    0
  3. #define ECJ_PROGRESS    1
  4. #define ECJ_ERROR    2
  5.  
  6. /* ECJ macros */
  7. #define Get_ECJ_Video_Format(x)    (x & 0x0007)
  8. #define Get_ECJ_Half_Size(x)    (x & 0x0008)
  9. #define Get_ECJ_X(x)        (WORD)(x >> 16)
  10. #define Get_ECJ_Y(x)        (WORD)(x & 0x0000ffff)
  11.  
  12. /* ECJ_Decode attributes */
  13. #define ECJ_HALF_SIZE    0x0001
  14. #define ECJ_AUTO_HALF    0x0002
  15. #define ECJ_GRAY_ONLY    0x0004
  16. #define ECJ_2_PASS    0x0008
  17. #define ECJ_DITHER    0x0010
  18. #define ECJ_24_BITS    0x0020
  19.  
  20. /* ECJ function prototypes */
  21. typedef int (CALLBACK* ECJCB) (WORD, WORD, LONG);
  22.